﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Client_Web
{
    public struct AlbumStruct
    {
        public string id;
        public string name;
        public string date;
    }

    public struct PictureStruct
    {
        public string id;
        public string name;
        public byte[] blob;
        public string date;
    }

    public struct UserStruct
    {
        public string id;
        public string name;
        public string login;
    }

    public class Util
    {
        public static string[] CleanAndSplit(string str)
        {
            string[] result = null;
            try
            {
                string[] split = str.Split();
                result = new string[split.Length];
                int i = 0;
                foreach (string s in split)
                {
                    if ("" != s.Trim())
                    {
                        result[i++] = s;
                    }
                }
            }
            catch (Exception e)
            {
                Console.WriteLine("Erreur :" + e.Message);
            }

            return result;
        }

    }
}
